package com.hua.demo.edu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hua.demo.edu.entity.Course;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hua.demo.edu.entity.frontvo.CourseFrontVo;
import com.hua.demo.edu.entity.vo.CourseInfoVo;
import com.hua.demo.edu.entity.vo.CoursePublishVo;

import java.util.Map;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author huazi
 * @since 2021-11-24
 */
public interface CourseService extends IService<Course> {

    void savecourseinfo(CourseInfoVo courseInfoVo);

    CourseInfoVo getcoursebyid(String courseid);

    void updatecourseinfo(CourseInfoVo courseInfoVo);
    CoursePublishVo getcoursepublicvo(String id);

    Map<String, Object> getfrontcourselist(Page<Course> pagecourse, CourseFrontVo courseFrontVo);

}
